/* Class39_Sub5_Sub4_Sub4_Sub1 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class39_Sub5_Sub4_Sub4_Sub1 extends GameCharacter {
	public static JString aClass3_2487;
	public static JString aClass3_2488 = Class39_Sub5_Sub9.createJString(124, "purple:");
	public static JString aClass3_2489 = Class39_Sub5_Sub9.createJString(111, "redstone1");
	public static Class7 aClass7_2490;
	public static Class9 aClass9_2491;
	public Class39_Sub5_Sub13 aClass39_Sub5_Sub13_2492;
	public static Class7 aClass7_2493;
	public static JString aClass3_2494 = Class39_Sub5_Sub9.createJString(119, "(U5");
	public static TextRenderer aClass39_Sub5_Sub10_Sub1_2495;
	public static JString aClass3_2496;
	public static JString aClass3_2497;
	public static JString aClass3_2498;
	public static Class35 aClass35_2499;
	public static Class39_Sub5_Sub10_Sub4 aClass39_Sub5_Sub10_Sub4_2500;
	public static Class18[] cacheIndexFiles;
	public static JString aClass3_2502;
	public static int[] anIntArray2503;
	public static JString aClass3_2504;

	public Model method489(boolean bool) {
		if (aClass39_Sub5_Sub13_2492 == null)
			return null;
		Class39_Sub5_Sub11 class39_sub5_sub11 = (anInt2268 == -1 || anInt2305 != 0 ? null : Class62_Sub1.method1064(anInt2268, (byte) 54));
		if (bool != true)
			method525((byte) -57);
		Class39_Sub5_Sub11 class39_sub5_sub11_0_ = (anInt2303 != -1 && (anInt2303 != anInt2317 || class39_sub5_sub11 == null) ? Class62_Sub1.method1064(anInt2303, (byte) 54) : null);
		Model class39_sub5_sub4_sub6 = aClass39_Sub5_Sub13_2492.method725(anInt2265, 65535, class39_sub5_sub11_0_, class39_sub5_sub11, anInt2306);
		if (class39_sub5_sub4_sub6 == null)
			return null;
		class39_sub5_sub4_sub6.method542();
		anInt2308 = class39_sub5_sub4_sub6.anInt1726;
		if (anInt2270 != -1 && anInt2276 != -1) {
			Model class39_sub5_sub4_sub6_1_ = Class40.method881(0, anInt2270).method778(180, anInt2276);
			if (class39_sub5_sub4_sub6_1_ != null) {
				Model[] class39_sub5_sub4_sub6s = { class39_sub5_sub4_sub6, class39_sub5_sub4_sub6_1_ };
				class39_sub5_sub4_sub6_1_.method554(0, -anInt2288, 0);
				class39_sub5_sub4_sub6 = new Model(class39_sub5_sub4_sub6s, 2, true);
			}
		}
		if (aClass39_Sub5_Sub13_2492.anInt1870 == 1)
			class39_sub5_sub4_sub6.aBoolean2374 = true;
		return class39_sub5_sub4_sub6;
	}

	public static JString method519(int i, boolean bool, int i_2_) {
		if (i != 10)
			method523(-15);
		return Class43.method907(bool, 10, i ^ ~0x42, i_2_);
	}

	public static void method520(int i, int i_3_, int i_4_, int i_5_, int i_6_) {
		for (Class39_Sub10 class39_sub10 = (Class39_Sub10) Class4.aClass49_74.method969(false); class39_sub10 != null; class39_sub10 = (Class39_Sub10) Class4.aClass49_74.method963((byte) -87)) {
			if (class39_sub10.anInt1433 != -1 || class39_sub10.anIntArray1416 != null) {
				int i_7_ = 0;
				if (class39_sub10.anInt1438 >= i_4_) {
					if (class39_sub10.anInt1432 > i_4_)
						i_7_ += class39_sub10.anInt1432 - i_4_;
				} else
					i_7_ += -class39_sub10.anInt1438 + i_4_;
				if (class39_sub10.anInt1434 >= i_5_) {
					if (class39_sub10.anInt1427 > i_5_)
						i_7_ += -i_5_ + class39_sub10.anInt1427;
				} else
					i_7_ += i_5_ - class39_sub10.anInt1434;
				if (i_7_ - 64 > class39_sub10.anInt1446 || Class9.anInt149 == 0 || i_6_ != class39_sub10.anInt1423) {
					if (class39_sub10.aClass39_Sub1_Sub2_1418 != null) {
						Class1.aClass39_Sub1_Sub1_32.method424(class39_sub10.aClass39_Sub1_Sub2_1418);
						class39_sub10.aClass39_Sub1_Sub2_1418 = null;
					}
					if (class39_sub10.aClass39_Sub1_Sub2_1441 != null) {
						Class1.aClass39_Sub1_Sub1_32.method424(class39_sub10.aClass39_Sub1_Sub2_1441);
						class39_sub10.aClass39_Sub1_Sub2_1441 = null;
					}
				} else {
					i_7_ -= 64;
					if (i_7_ < 0)
						i_7_ = 0;
					int i_8_ = ((class39_sub10.anInt1446 - i_7_) * Class9.anInt149 / class39_sub10.anInt1446);
					if (class39_sub10.aClass39_Sub1_Sub2_1418 != null)
						class39_sub10.aClass39_Sub1_Sub2_1418.method443(i_8_);
					else if (class39_sub10.anInt1433 >= 0) {
						SoundEffect class52 = SoundEffect.method980(Node.aClass9_Sub1_732, class39_sub10.anInt1433, 0);
						if (class52 != null) {
							Class39_Sub3_Sub1 class39_sub3_sub1 = (class52.method981().method455(Class39_Sub5_Sub2.aClass43_1693));
							Class39_Sub1_Sub2 class39_sub1_sub2 = Class39_Sub1_Sub2.method444(class39_sub3_sub1, 100, i_8_);
							class39_sub1_sub2.method448(-1);
							Class1.aClass39_Sub1_Sub1_32.method421(class39_sub1_sub2);
							class39_sub10.aClass39_Sub1_Sub2_1418 = class39_sub1_sub2;
						}
					}
					if (class39_sub10.aClass39_Sub1_Sub2_1441 != null) {
						class39_sub10.aClass39_Sub1_Sub2_1441.method443(i_8_);
						if (!class39_sub10.aClass39_Sub1_Sub2_1441.method437())
							class39_sub10.aClass39_Sub1_Sub2_1441 = null;
					} else if (class39_sub10.anIntArray1416 != null && (class39_sub10.anInt1442 -= i_3_) <= 0) {
						int i_9_ = (int) (Math.random() * (double) (class39_sub10.anIntArray1416).length);
						SoundEffect class52 = SoundEffect.method980(Node.aClass9_Sub1_732, (class39_sub10.anIntArray1416[i_9_]), 0);
						if (class52 != null) {
							Class39_Sub3_Sub1 class39_sub3_sub1 = (class52.method981().method455(Class39_Sub5_Sub2.aClass43_1693));
							Class39_Sub1_Sub2 class39_sub1_sub2 = Class39_Sub1_Sub2.method444(class39_sub3_sub1, 100, i_8_);
							class39_sub1_sub2.method448(0);
							Class1.aClass39_Sub1_Sub1_32.method421(class39_sub1_sub2);
							class39_sub10.aClass39_Sub1_Sub2_1441 = class39_sub1_sub2;
							class39_sub10.anInt1442 = (class39_sub10.anInt1426 + (int) ((double) (class39_sub10.anInt1439 - (class39_sub10.anInt1426)) * Math.random()));
						}
					}
				}
			}
		}
		int i_10_ = 39 / ((i + 25) / 33);
	}

	public static JString method521(int i, int i_11_) {
		if (i < i_11_)
			return Class57.method1007((byte) 71, i);
		return Class24.aClass3_456;
	}

	public static int method522(int i, int i_12_) {
		return i ^ i_12_;
	}

	public static void method523(int i) {
		aClass35_2499 = null;
		aClass3_2502 = null;
		aClass7_2490 = null;
		aClass3_2496 = null;
		aClass3_2488 = null;
		aClass3_2497 = null;
		aClass9_2491 = null;
		aClass3_2489 = null;
		aClass3_2504 = null;
		aClass3_2498 = null;
		aClass7_2493 = null;
		aClass39_Sub5_Sub10_Sub4_2500 = null;
		aClass3_2494 = null;
		cacheIndexFiles = null;
		anIntArray2503 = null;
		aClass3_2487 = null;
		aClass39_Sub5_Sub10_Sub1_2495 = null;
	}

	public boolean method510(byte i) {
		if (aClass39_Sub5_Sub13_2492 == null)
			return false;
		return true;
	}

	public static void method524(byte i) {
		Class45.lowDetail = true;
		World.aBoolean684 = true;
	}

	public static void method525(byte i) {
		if (Deque.aClass16_923 != null)
			Deque.aClass16_923.killThread(i ^ 0x813);
		if (i != -127)
			method525((byte) 36);
	}

	public static boolean method526(int i, int i_13_, boolean bool, int i_14_) {
		int i_15_ = (i & 0x1ffffc8f) >> 14;
		int i_16_ = Class44.aClass38_836.method359(Class11.currentPlane, i_13_, i_14_, i);
		if (i_16_ == -1)
			return false;
		int i_17_ = i_16_ >> 6 & 0x3;
		int i_18_ = i_16_ & 0x1f;
		if (i_18_ == 10 || i_18_ == 11 || i_18_ == 22) {
			ObjectDef class39_sub5_sub15 = Canvas_Sub1.method40(i_15_, (byte) 60);
			int i_19_;
			int i_20_;
			if (i_17_ != 0 && i_17_ != 2) {
				i_20_ = class39_sub5_sub15.anInt1948;
				i_19_ = class39_sub5_sub15.anInt1925;
			} else {
				i_19_ = class39_sub5_sub15.anInt1948;
				i_20_ = class39_sub5_sub15.anInt1925;
			}
			int i_21_ = class39_sub5_sub15.anInt1958;
			if (i_17_ != 0)
				i_21_ = (i_21_ >> -i_17_ + 4) + (i_21_ << i_17_ & 0xf);
			Class26.findRoute(24134, 0, i_14_, 0, 2, i_20_, i_19_, true, i_21_, (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2314[0]), (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2255[0]), i_13_);
		} else
			Class26.findRoute(24134, i_18_ + 1, i_14_, i_17_, 2, 0, 0, true, 0, (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2314[0]), (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anIntArray2255[0]), i_13_);
		Class62_Sub2.anInt1596 = PacketParser.mouseY;
		Class4.anInt80 = 2;
		Class26.anInt503 = 0;
		Class62_Sub1.anInt1590 = Class39_Sub4.mouseX;
		return true;
	}

	static {
		aClass3_2487 = (Class39_Sub5_Sub9.createJString(107, "RuneScape wird geladen )2 bitte warten)3)3)3"));
		aClass3_2496 = aClass3_2488;
		aClass3_2497 = Class39_Sub5_Sub9.createJString(113, "Ihr Charakter)2Profil wird in:");
		aClass7_2490 = new Class7(64);
		cacheIndexFiles = new Class18[14];
		aClass3_2502 = Class39_Sub5_Sub9.createJString(112, "Accept trade");
		aClass3_2504 = aClass3_2502;
		aClass3_2498 = Class39_Sub5_Sub9.createJString(109, " hat sich eingeloggt)3");
		aClass35_2499 = new Class35();
	}
}
